<template>
  <el-row :gutter="20">
    <el-col
      :span="6"
      :xs="{ span: 24 }"
      :sm="{ span: 24 }"
      :md="{ span: 6 }"
      v-for="item in dataList"
      :key="item.id"
    >
      <div :style="{ height: height }" class="space-inner">
        <el-button type="primary" class="space-inner-button" plain>
          <el-icon class="no-inherit"> 
            <component
                :is="item.icon" />
          </el-icon>
          {{item.title}}</el-button
        >
      </div>
    </el-col>
  </el-row>
</template>
  
  <script>
export default {
  name: "LyGrowcardOne",
  data() {
    return {
      dataList: "",
    };
  },
  created() {
    this.dataList = this.modelValue;
  },
  props: {
    loading: {
      type: Boolean,
      default: true,
    },
    direction: {
      type: String,
      default: "horizontal",
    },
    alignment: {
      type: String,
      default: "flex-start",
    },
    count: {
      type: Number,
      default: 1,
    },
    rows: {
      type: Number,
      default: 4,
    },
    animated: {
      type: Boolean,
      default: true,
    },
    modelValue: {
      type: Array,
      default: [],
    },
    height: {
      type: Number,
      default: 200,
    },
  },
  watch: {
    modelValue: function (nval) {
      this.dataList = nval;
    },
    dataList: function (nval) {
      this.$emit("update:modelValue", nval);
    },
  },
};
</script>
  
  <style scoped>
.space-inner {
}
.lycard {
  /* #409eff */
  background: rgba(236, 236, 236, 0.3);
  /* background: rgba(64, 158, 255, 0.09); */

  padding: 10px 0;
  box-sizing: border-box;
  /* background: var(--el-bg-color); */
  /* box-shadow: var(--el-box-shadow-light); */
  /* border: 1px solid var(--el-border-color-light); */
}
.linkcolor {
  color: rgb(101, 155, 224);
}
.space-header {
  /* border-bottom: 1px solid var(--el-color-info-light-7); */
  font-size: 14px;
  padding: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.space-header-title {
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-left: 10px;
}
.space-header-extend-right {
  padding: 8px 0;
  margin-right: 10px;
}
.space-main {
  padding: 10px 20px;
}
.space-main-icon {
}
.space-main-up {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.space-main-down {
  /* margin-top: 15px; */
  min-height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.space-main-down span {
  color: #333333;
}
::v-deep(.el-col) {
  margin-bottom: 11px;
}
.space-inner-button {
  width: 100%;
  padding: 30px 0;
  font-size: 18px;
}
.no-inherit{
    margin-right: 10px;
}
</style>